<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>学生信息管理系统------教师账号注册页面</title>
</head>
<%
    //        权限验证
    if(session.getAttribute("user")!=null){
        String admin= (String) session.getAttribute("user");
        if(!admin.equals("admin")){
            response.sendRedirect("error.jsp");
            return;
        }
    }
%>
<body>
<h4 align="center">学生学籍信息管理系统------教师账号注册页面(超级管理员操作)</h4>
<div align="center" style="padding-top: 50px;">
    <form action="teacherResgist" method="get">
        <table  width="740" height="500" background="images/login3.jpg" >
            <tr height="180">
                <td colspan="4"></td>
            </tr>
            <tr height="10">
                <td width="40%"></td>
                <td width="10%">用户名：</td>
                <td><input type="text" required="true" name="userName" id="userName" /></td>
                <td width="30%"></td>
            </tr>
            <tr height="10">
                <td width="40%"></td>
                <td width="10%">密  码：</td>
                <td><input type="password" required="true" name="password" id="password"/></td>
                <td width="30%"></td>
            </tr>
            <tr height="10">
                <td width="20%"></td>
                <td><input type="submit" value="注册教师账号"/></td>
                <td width="20%"></td>
            </tr>
            <tr height="10">
                <td width="40%"></td>
                <td colspan="3">
                    <font color="red">${Resgist_error}</font>
                </td>
            </tr>
            <tr >
                <td></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>